Set correct parent