fixed the oob check for item(), should return null