Ticket #263: Fixed some exceptions.