fixed some graphics bugs