fix bug with markup and  calendar