Have enough resources but still won't let me upgrade