Improve detection performance (#67)