Fixed a typo in the backend API

* dettach --> detach