Little fixes

So what does this piece of code do? Why is there no comment whatsoever?