Bug fix for delem().