fix ref. error with php 5.3.x