Fixing dodgy array find