fixed bug 3484
Merge pull request #2727 from StevenPuttemans:bug_3484