Fix due build errors

Fixed missing semi-colon and space after the if so the build won't fail.