spend was not recognized if it was not the last input!