Fix bugs, including one where semester changes quietly when editing a class