fix for bug with indexed properties retaining old values and allowing access of elements on other indexed properties.