Fixed a bug in identify_preview_location.