display_error helper fix