Fixed two minor things found by static analysis