Fixed empty tr output in calendar view