fix notice with php 5.4