Fix error in in Error Conosle when clicking on some items