fixed zero end error on smiles