fix bug with grid very little step