Port generator fixed (error if no shape if defined)