Fixing bug https://github.com/tuplejump/stargate-core/issues/37