bugfix for trace - again