Something went wrong in last commit, detectFunc returned undefined