fixed the no input issue