New course attribute objects are saved before assignment