trivial fixes suggested by IntelliJ analyzer