fix localdof index (used with sign)