Fixes migrations