Making sure the pos is between 0 and 1.