fix no auto preview issue when editing post