fix variable names in php issues