fixed short trace and outside the class error