DynamicArray Bug fixed