fixed PHP incompatibility