fixed minor bug in demag