Fixed bugs related to port creation issue with single point ports and gridsize inflexibility.