fix select character issue