fixed wrong usage of display class hirachy