Fixed off-by-one function name bug