fix bug of enrollment