Wrong logic to check if alloc is enabled.