date type fix