Prevent writing to unallocated memory in mk_specbonds