repaint bug has been found. workaround has been added Sleep(100)