bug 1138: added ticketnumber check