fix regression bug caused by getArray redirection