Bug fix generation of the command (threshold field)