drawing grid bug fixed