fix invalidate schedule issue, avoid draw() before next frame.
Merge pull request #96 from mmin18/master

fix invalidate schedule issue, avoid draw() before next frame.
Merge of #96 into dev