bug 1137: added missing if statement