Fixed errors in console on production

Fixes errors related to component child inheritance