Tiny refactorings

While scanning the code I found some possible improvements.

WDYT?
Oops, sorry about that.