view: Fix errors reported by IntelliJ