fixed issue where None vallue caused a failure