Fix bug where frontend modules were created with wrong name (or no name at all)