Fixed bug in calendar rendering.