fixed problem with time persistence