Fixed array not building correctly