fix bug & link exceptions