bugfix from Jeff Finucane, thanks!