fix previous_release code