fixed ~ bug in built spark