Fix for https://github.com/tuplejump/stargate-core/issues/26