corrected shallow flag in instantiate