Fix bug 1587 - TypeError fix

No match.