Fix panel expanding