basisFunctions error fix