fix stack not being empty after flush