fix schema migration