fix keep_releases bug