Fixing a little bug in content writer