Unknownreported this bug
if you use for example default view distance and simulation distance (10) they work fine but, reducing it to 6 and 4 the mobs doesn't spawn at all or only spawns when you teleport and load a chunk