FIX jpfuentes2#361
Group association conditions in parentheses