Fixed popping to emty stack