small correction for php5-6