Fix urlencode bug & match input ids of real cas