logical type fix