fixed php5.3 compat