Fix onclick handler