Fix pop logic