fix grid problem