null reference Effect fix