in reply to Re^3: probably stupid mistake
in thread probably stupid mistake

Yes, Your code works properly for me too.