fixed return value of internalRemoveItems