fixing php error