fix running errors