Fix bug in culling

Previously abd was not defined.