Fixed negative timeout bug.