Fix crash on move with invalid parameters