fixed issues with reverting branch