fixed short trace and outside the class error
fixed CS violation