Remand for a new Romero hearing was required where the defendant received ineffective assistance of counsel at that hearing. The defendant received a doubled sentence after the court declined to strike his prior conviction for a violation of section 422. The courts statements at the hearing made it clear that the defendants prior conviction was not particularly serious or violent, and that the court was declining to strike the prior because the defendant had been notified at the time of his plea to that offense that it could later be used to enhance his sentence. However, the defendants plea to the section 422 violation occurred prior to the addition of that offense to the list of serious or violent felonies. Thus, the courts decision was based on a factual or legal error, and counsel was ineffective for failing to bring that error to the courts attention.