Fix bug not reading isCloseAfterCopy & minor changes