Fixed a TypeError