fixed minor grid bugs