Bug fix php5.3