Add workaround for "Resources" bug in gs. Fixes #24