Fixed stack trace problem