fix bug in submit when pid is not integer