fixing https://github.com/spark/spark-server/issues/18