[API] Fixed getObjects adding too much callback nesting