reset keys after array_unique for following code to work correctly