Fix stacktrace error