fix mistake of check extension