off by one grid coordinate error