Fix typo and move module initialization to its correct place.