Fixed build error concering sp--get-substitute