fixed canvas flickering