Fixed a bug caused by a bad kwarg.