fix ltrim of factoryTS