Fix inner grid problem #8