Ensured that the position values are inside the desired bound.