fix migrate='safe'