Correct pop stack error