Solved bug in enrollment