Fix snap-lib dependency bug