Fixed a backwards compatibility bug.