Fix wrong semantic
Merge pull request #2013 from penibelst/patch-1