Fixed a slight runtime error.