BUG fix - wourkaround to stack.sh hanging in the end