Fixed logic for applying cost to not display progress bar when not enough resources