Fix a bug runing with PBIs on 10.0 with older wrapper version