fix item length on template