fix the check for away