Fixed a poorly spelled function.