Fixed compatibility with stupid old php