Here's a thread from a few years back with the same issue - no apparent resolution.
Given that you're running 4.7.1, It's possible this was fixed in a later release of MX4. I recommend trying to reproduce this in a test project on a newer version of Mendix 4. If you can reproduce the issue, submit a support ticket with your sample project attached.