fixed error_showing bug