fixed PHP warning.