Fixed problem where /detect is not working