Change LinearMap to HashMap.