fix type conversion in rage Worker