fixed php bug