fixed bugs in away function when showing duration prompt