dv: Fix null pointer dereference due to ach=0