fixed ensure data