Bug fix about semicolon of if statement.