Corrected an issue with creating an array