Fix update command, length checking on array