Fix bug in find packed object.

Fixes #2650 
@ussuri