fix some minor issues in ghost files