fixed bug collision grid with graphic