fixed latest_version() function return value