fix exceptions handling