Typo

"when" used when "if" was intended.