Fixed file_selector code.