There seems to be a bug with Surface object and Draw Text action. After certain amount of Draw text actions, the application starts to completely misbehave. Windows control objects like buttons stop working, menu disappears and some conditions stop working properly. Sometimes it looks fine until I try to move the window. I traced the issue to not setting up anything about the font before drawing text. Action like set font or set font size fix the issue so it's not a big deal, but still, it's interesting bug. Could anyone offer explanation of why is this happening?