fixed InvalidException