fixed bug when fullfile not specified.