Fixed some stacktraces.