bugfix by Sergey, reported by Bassam, couldnt select input sockets