Fixed the incorrect field name and removed an extraneous parameter in a function signature