minor logical fix