Why is the pop moved below the write?