Fix no dependency crash bug