template editor fix