fix bug with empty script collections