Getting strange bus error; recompute addresses