fixed bug, changed to queryselectorall