fixes in dmr.c