grid rounding error bug needs fixing