fix firstError error When self::$error is empty