Fix debug, font and registerStatics