Fixes a bug that filter in for-comprehension was causing extra directory lookup