Ah, good catch.  I was assuming that the file passed to ```setId``` would be first on the list, which is obviously not always the case.  Should be fixed now.