fixed bug when trailer not present