minor changes

element and patch tests show no problem of codes

signal 9 is very likely killed by the kernel because of memory/swap
overload when writing outputs

both times signal 9 appears when output files are being written