add template extends, cause bug