Fix content dup bug

This will fix issue #312