fix for unwrapped arrays