fix duration wait for AT command