fix internal was reversed