It is strange but this makes the gem work in production

As I mentionded in the issue #89 the gem fails in production.
This commit makes it work. Though I'm not sure this will be the final solution.