Change Pixel and Rec to work properly with ModuleFactory.