Why are my posts being duplicated?