Fixed errors thrown by constructors to reflect the current parameters.