fix for SLogic