fix runcode bug