avoid index accessing when Single item input fix