Fixed a bug in the SetOpacity method

Method was called SetAlpha instead of SetOpacity and also it wasn’t
checking for the children list to be null