fixed issue with timer