fix bug: library didn't load without debug mode