Fix naming mistake for function