fixed stuttering while drawing