Fix PHP warnings.
Fix order_management filtering