fixed typo and usage of typedef'd name