Fixes issue with showing error messages.