fixed when loading through npm