Fix pop failed bug