fixed showing of error message