minor change to code. Double checked it on another machine and it works.