[Fix] unclosed if statement typo