fixed bugs with time slider