Fix for the reading complex datasets