php compatibility bug fixed