Fixed getting contents of selection datatype