bug of editCode