fix some bug and update php