Fixed migrations crash error