fix spatial plugin ref