fixed run errors