Fixed problem with num_error