Fixed bug in which populate plist always added an element at index -1