fix find by id bug

detected by test run on travis! :)