fix compile error also have issure runwith sparkpi