bugfix results write