fixing bugs with ajax suggest type