fix dropping staged libs from modules