Fix onClick event