calendar fix in leaves