fix a bug for cannot use sparkup