fix bug in similarity_surface_generators.py