fixted run errors