fixed 2 coding errors noted by travis