coerced version_id to int so comparison with current_version_id works in template