fixing the "blinking" bug.
Merge pull request #2 from akozadaev/master

Fixing the "blinking" bug.