Fix some graphics bugs