Fixed typo from stack overflow example