Fixed draw Rect canvas bug