Fix check_gradient suspect formatting