fixed issue with array not being cleare