fix resolveuid in 4.0