fixed issue with students not updating because of incorrectly initialized factory