fix 2 static analyssis warnings