fix duplicate div creation