Fixed firing inputcomplete event on error