Fixed #61

The input_list in the pre_generate method needs to be copied and be used. Otherwise, the value in the input_list may be changed based on the action number.