Fixes migration