Bugfix to dataextract