fix syntax error on php 5.3