Fixing out of bounds access in frame_refs[] array. Change-Id: I08f45573e0b2195c09fb6aecacb4c57431a711ea