Fixed some panel orientation issues