some bug with error message display