fix array retain/release