Fixed a bug in makeExerciseEntry function