Fixed undeclared error for Ninite spark