bug fix of the sanity check

Signed-off-by: Fotis Georgatos <fotis@cern.ch>