Fixed bug whene there are no buildings to upgrade