fixed extensions error (replaced or for arrays)