fix errors in search and recipe creating