fix various findbugs errors categorized CORRECTNESS and BAD_PRACTICE

**please review**
Did I really misspelled Tuple with double t?
Could you take care of this please?