fix bug in priting attendance