Fix some bug with exceptions