fix template editor in https admin