Fixed doddgy refex causing file not found