Fix refs/heads