Fixing logic bugs with cell locations