fixed fatal bug in jeremy's diags