Fix a short tag possible crash and a misstype $

This is for #91.
I found severall bugs when I try the Ampache module.
I fix crashes I had, but there are other things to do because Ampache.NET don't seems to be able to read music stored in my server.

PS : Sorry for my bad english