Fix library method not found issue