fix duplicate posts showing issue