Fixes FileGallery element click listener.