fix using surface detector