Fixed wrong input (not added to history anymore)