you would need to provide more information, or better yet an example, showing the label duplicated error.
Just knowing you're getting an error is not sufficient for me to debug it.
>> Also filter expression in auto complete stays in the code even if I remove it from the template.
Again, more information required. I'm not sure what you mean by this?
Cheers
Bruce