After you file

I received Direct Deposit for my state Tax returns but the IRS is mailing me a check, how can I get them to do Direct Deposit instead and make sure it does not happen again in the future, given the state returns could do direct depost I am assuming there was no error on the account number or routing number