Fix a binding issue with file selection event handler