fix require template editor