correctly handle jumping up to a closed fold