fixed issue where invalid input would result in whole section being mapped