Fixed migration (#837)