remove warnings on php 5.4
fix function call for php 5.4