Bug fix: data_arr initialization was different