fix trailing stuff exception code