fixed building
Fixes #1 : bug in working on instances by id