Fixed missing value problem; improved error mesg.