EntityCreating OneSync serverfunction doesn't cancel when triggering CancelEvent

Sinds last week, when Canceling the EntityCreating event it won’t cancel and still spawn the entity, I use this code:

AddEventHandler('entityCreating', function(entity)

    if BlacklistedModels[GetEntityModel(entity)] then

        CancelEvent()

        print('Cancel Blacklisted Item')

    end

end)

The print comes always also when it won’t cancel the even itself. I hope this is enough information, other ask for more.

It Does cancel?
I made mine like this

AddEventHandler('entityCreating', function(entity)
    local model = GetEntityModel(entity)
    if BlacklistedModels[model] then

        CancelEvent()

    end

end)

If it does not maybe your BlacklistedModels are not correct

This is mine, for example:

BlacklistedModels = {
        [`rhino`] = true,
        [`hydra`] = true
}