fix for dealing with different types of object ids