fixing bug for daily attendance

fixing bug for daily attendance