use another way to fix the previous bug

Signed-off-by: Henry Chen <hchen@vmware.com>