fixed bug with double labels template