Fixes subObject not being created correctly when it's invisible.