fixed replacing calendar elements in render

fixed replacing calendar elements in render