Fixed crash from sub control