Fixed an Array bug for firefox