prevent php5.3 warning, possible fix for #51