fix rand head array out of index, add from plist