Fixed for php5.3