Fixed the up set bug