fix subwired errors