fixed some grafics bugs