Upgrade libs
Fix scan bugs