fixed one more crash

check the validity of the LHS before taking any
further action