fix sqrt