Fix compatibility issue for Expression Engine 2.x