fixed typo for prototype warning