fixing php variable references