fix bug of conflicts inside methods