fixed rule adding Array OOB error