Fix logical error.

MFC after:	3 days