fix init bug with exclude