fix weird hidden character bug