FIX #151 (TypeError caused by style.register)