fixed logic error in smurf handling