AUTO-1173: fix stack trace bug