fix bug with key trace, pub and policeman