fixed bug in trip coordinate