Correct pop loop
Clear programMsg before pop