fixing DM behavior on empty strings