Another small bug fix for module adding.