Fixed grid not moving error
Fixed regression error and window size error