Couple of tweaks

Hi,
here are couple of things that didn't work on my server and I had to fix them.
I'd like you to review them, maybe something is applicable for everybody.