fixed removeFiles & selectFiles