fixed template, compatible to angular 1.2.3