Fix for with_indifferent_access error