Fixed a failed functional test