Fixing removeChild call, used while removing a fill element