Crash fix for rgain ≤ 1.0.2, https://bitbucket.org/fk/rgain/issue/4