Fix bug for side panel on top when initialised