Haydar Mirza was the only son who was with him when he died, and the following day announced himself as the new shah.
Haydar Mirza was the only son. This only son was with him. He died. The following day announced himself as the new shah.