Fix issue, where new persistent heads were not updated after push