bug fixes and no email being sent for classes created in the past