fixing main view render