Fixed error on migrations.