Fix to show error msg problem