Resolve X BadValue error