Fixes document click structure for clear