diagnosis revisited for new tables

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>