Fixes #158 via anonymous user

I verified the fix with a previously failing file exported from kW X-port.