Trying to fix division by 0. in Preference Analysis