Shivaji III and Shivaji V are different person although they are confused. Shivaji V separately existed (The History and Culture of the Indian People: The Mughal empire).