Replaced deprecated array function

Change-Id: Iad1fbfc56dfafd2c48f5ecb26ac7216cf6b66269