Changed hardcoded number of interfaces, fixes #4206.