fix bug for has module
fix bug for has module