Fixed errors and smiles are now detected successfully