ReverseNodeInKGroup ac, with minor code change