fix using surface detector
Merge pull request #10 from Dobr1802/code

fix using surface detector