Make vectorX field readonly