Fixed bug #127 (need to be tested). Spark history server bug fixed