minor bug fix for lib loading --kazu