Fixed NRE in shares config