minor fix for selecting file extension