fix for initial duplicate bug