bug fixes to classify_parallel and update_gradient