Fix pink borders in graphics