Fixing php error.