fixed incorrect parameter, extended LoadFromArray