fix running bugs