Topology of the Fermi surface beyond the quantum critical point