corrected a small bug (typo in "setTimeout")