Shipyard: fixed the upgrade capacity method