Fix if statement error.