Adding fix for objects in different namespace from repository.

Fix for Issue 7.

All tests are passing