Fix trap in Bash script.