fixed bug in php