attendances controller fix