Fix module upload when tidy enable