[FIX] Problem of casting in OpenInv feature. See #416
[DEV VERSION]