Fixes issue #1 (cells along x=0 or y=0 not getting set properly)