More intelligent Refreshing algorithm and fixed Spark posting error