EArrWrite bugfix from performance