fixed a bug with robbing

fixed a bug with robbing