stl implement bug fixing