Fix double-click handler