Fixes condition where we were not correctly setting weighted vs not.