fixed orientations array size issue in Tools