5.3 compatibility

My fix for #13 broke in php 5.3. My bad.