Fixed the bug where a history invocation with an int followed by a string were deemed valid, when they shouldn't have been.