fixed display class successfully