Fix eval error when input is empty