important handle_error fix