bugfix in dl.c