fixed assertion on empty scala lib