check InitData

Signed-off-by: Nguyen Thanh Binh <binh.drca@gmail.com>