fix swapped value in setbounds