Fixed bug of compound element displaying