Fix dchecks