fixed hidden/show with time/distance