fixed error when displaying component without page...
better rendering of calendar component