fixed problem with empty fields for exercise