fixed some graphic bugs