Fixed bug in enrollment