fixed releasing the view