Remove unnecessary .path