fixed problems with migration on OSX #459