Fix bug with typing errors.