[Fix][Engine] Fix spark engine error (#531)