Some more sonar issues...

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>