fixed internal reapir hopfully