fixed a gridmaker bug