fix a bug in staticErr