fix compile error for spider