ambient occlusion doesn't work with shadows

Got the same problem. Did you found what was causing it?