fix error changing file selection