Prevent alert box on errors