fixed diffraction.set(Linked, Linked)

Fixed a simple error in diffraction.cpp