fixed running errors