fix bug with datebox