Fixed error showing the error message.