fix charAt (not supported)