fixed syntax error for selecting routes based on gym_id