fixed small bug for xml/html autoclose mapping