OK, so you’re saying that it works OK if you have set All Files but causes problems when you select Only Files With Selected Extensions? ???
That would be very odd since the former is a superset of the latter.