minor bugfixes to detection pipeline based on testing of real repositories