Fixed a bug causing warnings on launch.