Fixed small bug detecting tie