Fixed `detect` not pulished when app running