fixed bug truncating tags