Bugfix for datastr output