Values method returns array instead of set