Fixed collection script error