Fix conversion from old database type.