Solve the hist grid problem