Fixed annoying libItem == undefined bug.