fixed fill_array function
Merge branch 'master' into fill_array_function