Another fix did not work. The same code works in the shell, so why not here?