Error: Argument mismatch for 'where' function.