Fix for sidebar problem in revision view