fix Graphics type