 Returning on 22 June, he planned to save the situation by blocking the Army of the Caucasus at Alyaty Pristan'.However, he arrived too late, and instead went farther north to Derbent, planning to attack the invading Army of the Caucasus from the north.At Baku, he left only a small Cossack contingent.