fix: TypeError cannot read properties of undefined (reading 'querySelector')