Fix if statement typo