tiny fix on sp.c