Bug fix on trip pattern and stop time relative controller