Revert "- bugfix diode"

This reverts commit 7209bcb696f77dd3d5512bdf8e28195d083f39f3.