Check backtrace on migration - issue #540