library load bug fix