fixed issue with wrong parameter in template