Fixed main view after a weird thing happened