fixed a bug in privacy checking