fixed converting reference times