fixed wrong exception variables with shift