Changed all ~\ref to \autoref for better compatibility.