Fixing a bug that caused the last exercise to be duplicated.