Fix ladder logic migration