isguest bug fix