fixes migrations command