fixed a bug when inki database migrations are not run.