fixed schema migration