Fixed a bug that #31 preview always happens if there's an active region.