fix getoccgrid