Fix EZP-21621 : logic error in argument type checking
Merge pull request #528 from Heliopsis-HQ/EZP-21621

Fix EZP-21621 : logic error in argument type checking