fix calendar sometimes can not format to json response