Fixed warnings in view.