Fix some bugs in RFSidePanel.