fix search and casi command