Fix bug in 0007 entity migration step  #29