fixed totally untested patch for migration patch 

<insert exibit meme here>