Bugfixes, pin addressing