Fix to php 5.4