Fix perspective initialization issue when clicking on top menu navbar