Fix strict standards method compatability