(RMenu) Fix logic error in applying CGP changes