load and store registers fix for arrays