Types array bug fixed