copy previous value if value is zero

Signed-off-by: tanji <nicholastanjerome@gmail.com>