Fix drawing loops.