fixed a bug in a lin