Fixed #331: onclick events in items not working.