Fixed newly introduced bug (Error class was from wrong package).