Fixed compatibility with fucking php 5.3