Style panel and fix bug