Fixing a 'this' issue with click handler.