fixed getStart() and getEnd() methods of calendar