fixed bug in timed