fixed bug in factory calltemplate which caused integers to be sent out literally not hex formatted