clean error message after displaing it, update #1924