fixed error in session calendar; applied fix in diary page