Fixed errors in attendance page