Remote files extension detection bug fixed