Fix bug with strings vs. int