fixed a bug in calendar, which creates links for every day even days gone by