fix Graphics.rect