fixing template vars