AddLogic bugfix