fix for registering module