Fix potential segfault in AL.