fix stacktrace