fix bug with authenticated module initialization (follow up to #1169)