Fix error 500 migrating from 0.0.2