Fixed array-bug