fixed error bounds in ks attack evaluation