Fixing function name bug