fixed php compat issue