Fix document click