find minor bugs reported by [findbugs]