fix for #606, renamed resource  to  in the template