Fix build error and data bug fix

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>