Bash duration fix