fix a reg bug of lr