fixes incorrect outputs in Cables.java