fixed an exception