fixed issue with clearing timer