My bad, I found out that I had overwritten the "hits" property previously to the execution of this code. Can this be prevented by making the "hits" property read-only?