fixed bug of build in editor