Make it work with php 5.3.8