Fixed suggestion of bugfix 3431
Seems correct to me and builds fine
Merge pull request #1994 from StevenPuttemans:bugfix_3431