fourth attempt to resolve bug #39