fix(issue #1): misplaced promise timeout.