fixed bug with exceprts