pathhelper fix for primitives