Fixing the sanity checker script