small bugfix when type is date or color