fixed a bug about getting error dist