fixed more php5.3 issues