Fixed array alignment bug