Fixed non-terminating bash bug.