corrected a coding error