fix filename resolver