Fix the onclick event on the client side