Test
Fixed two detection bugs and a typo.