second passant bug fix