fix agent interval to integer after new json api made it unicode