Fixed bug due to adding (and then removing) 0 and 1 as port types