fixing view_contents