fix to setting up 'copyCurrentConditionsFromTempSQL'